<template>
  <uni-page-wrapper>
    <uni-page-body>
      <uni-view  class="bg">
		  <uni-view  class="tit1">{{ $t("addbank.Your identity") }}</uni-view>
		<uni-view  class="list"> 
			<uni-view class="item">
				<uni-view class="l">
					{{ $t("addbank.Name") }}
				</uni-view>
				<input class="input" v-model="nickname" :placeholder='$t("addbank.Please type in your name")'/>
			</uni-view>
			<uni-view class="item">
				<uni-view class="l">
					{{ $t("addbank.Tel") }}
				</uni-view>
				<input class="input" v-model="tel" :placeholder='$t("addbank.Please enter the phone")'/>
			</uni-view>
		  <uni-view  class="tit1" style="margin-top: 19px;">{{$t("addbank.Your bank card information")}}</uni-view>
			<uni-view class="item">
				<uni-view class="l">
					{{ $t("addbank.Account no") }}
				</uni-view>
				<input class="input" v-model="bankcard" :placeholder='$t("addbank.Please enter the Account no")'/>
			</uni-view>
			<uni-view class="item">
				<uni-view class="l">
					{{ $t("addbank.Bank") }}
				</uni-view>
				<input class="input" v-model="bankname" :placeholder='$t("addbank.Please enter the bank name")'/>
			</uni-view>
			<uni-view class="item">
				<uni-view class="l">
					{{ $t("addbank.Ifsc code") }}
				</uni-view>
				<input class="input" v-model="zdname" :placeholder='$t("addbank.Please enter the Ifsc code")'/>
			</uni-view>
			<uni-view class="goSubmit" @click="bind">{{ $t("addbank.Bind now") }}</uni-view>
		</uni-view>
	  </uni-view>
    </uni-page-body>
  </uni-page-wrapper>
</template>

<script>
	import service from '@/store/service.js'
	export default {
		data() {
			return {
				nickname:'',
				tel:'',
				bankcard:'',
				bankname:'',
				zdname:''
			}
		},
		methods: {
			bind(){
				service.auth(this,service.api.app_bindbank,{
					nickname:this.nickname,
					tel:this.tel,
					bankcard:this.bankcard,
					bankname:this.bankname,
					zdname:this.zdname
				},function(self,res){
					uni.navigateBack()
				})
			}
		}
	}
</script>

<style>
@import url(./addbank.css);

</style>
